Fix recompilation test for mac
authorAleksey Kladov <aleksey.kladov@gmail.com>
Sat, 18 Feb 2017 06:34:38 +0000 (09:34 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Sat, 18 Feb 2017 06:34:38 +0000 (09:34 +0300)
On macs, mtime has a seconds granularity, so we need to sleep a bit

tests/path.rs

index 1b4594fe69e44f8527dcbcaa960f5bd57a03aa25..52e117d762b85c283eea0570ad14450bff4eea3a 100644 (file)
@@ -298,6 +298,7 @@ fn no_rebuild_dependency() {
                                             p.url(),
                                             p.url())));
 
+    sleep_ms(1000);
     p.change_file("src/foo.rs", r#"
         extern crate bar;
         fn main() { bar::bar(); }